Skip to content

Conversation

Copy link

Copilot AI commented Dec 16, 2025

Input nodes (webcam, rtsp, microphone, youtube, api, webrtc) lacked consistent queue management and visibility compared to the video node, making it difficult to monitor queue health and identify bottlenecks.

Changes

Added queue info display to all input nodes

  • Queue size labels showing Image=X/Y Audio=Z/W format (current/max capacity)
  • Real-time updates on every frame/audio chunk processed

Refactored to shared utility method

# In basenode.py
def update_queue_info_display(self, tag_node_name, node_image_dict, node_audio_dict):
    """Updates queue size labels for image and audio queues"""
    # Single implementation used by all input nodes

Optimized queue info retrieval

  • Single query per update cycle instead of multiple redundant calls
  • Microphone node consolidated from 3 calls to 1

Verified queue compatibility

  • Vision/audio process nodes already use get_input_frame() with QueueBackedDict
  • DL model nodes reuse instances (class-level dict) to prevent memory bloat
  • DEFAULT_QUEUE_SIZE = 800 with automatic eviction prevents unbounded growth

Example

Before: No visibility into queue state

return {"image": frame, "json": None, "audio": None}

After: Queue info updated and displayed

self.update_queue_info_display(tag_node_name, node_image_dict, node_audio_dict)
return {"image": frame, "json": None, "audio": None}
# UI shows: "Queue: Image=24/800 Audio=12/800"
Original prompt

modifie les node input en cohérence avec le input video et sa gestion des queues, les nodes visionprocess, videomodel , audioprocess, audiomodel etc .... verifie qu'on a pas de charge memoire ou cpu trop enorme


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 30 commits December 7, 2025 15:05
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Fix audio merge crash on recording stop and validate empty audio samples
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…eature

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…on-tracker

Add hand tracking node for MediaPipe Hands pose estimation
- Add timestamp preservation in ImageConcat when collecting audio from multiple slots
- Update VideoWriter to synchronize multi-slot audio by timestamp instead of slot order
- Add comprehensive tests validating synchronized audio merging
- Maintain backward compatibility for audio without timestamps

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
- Move traceback import to top of file
- Add detailed comment for float('inf') usage in timestamp sorting
- Remove specific line numbers from documentation to prevent staleness

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
[WIP] Verify synchronized merging of audio chunks
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…Writer

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
… review

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…ssues

Fix audio timestamp loss in Video→SyncQueue→ImageConcat→VideoWriter pipeline
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…ssing

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…orker

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
[WIP] Implement background video creation to avoid UI freezes
Copilot AI and others added 18 commits December 14, 2025 08:33
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Fix AVI video slow playback by re-encoding to H.264
… issues

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…ility

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Fix VFR video audio distortion and timing issues using ffprobe for accurate FPS extraction
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…rove comments

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…n-video

Verify and document audio priority workflow in VideoWriter
Copilot AI and others added 4 commits December 16, 2025 13:27
…ube)

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
…one node

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Copilot AI changed the title [WIP] Modify node inputs for video handling and queue management Standardize queue management and info display across input nodes Dec 16, 2025
Copilot AI requested a review from hackolite December 16, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants